package com.mall.service;

import com.mall.mapper.bannerMapper;
import com.mall.pojo.banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class bannerService {
    @Autowired
    private bannerMapper bannerMapper;
    public List<banner> getBanner() {
        return bannerMapper.findAll();
    }
}
